// Dropdown
.ant-dropdown-menu-item,
.ant-dropdown-menu-submenu-title {
    display: flex;
    align-items: center;
}

.ant-dropdown-menu-item {
    > .i-icon:first-child {
        margin-right: 8px;
    }
}

// Modal
.ant-modal-scroll {
    .ant-modal {
        top: 24px;

        &-header {
            padding-left: 16px;
            padding-right: 16px;
        }

        &-content {
            max-height: calc(100vh - 24px * 2);
            display: flex;
            flex-direction: column;
        }

        &-body {
            flex: 1;
            overflow-y: auto;
        }
    }
}

// List
.ant-list {
    .ant-spin-nested-loading {
        > div > .ant-spin {
            height: 100px;
        }
    }

    .ant-list-pagination {
        margin-top: @margin-md;
    }
}

// Form
.ant-form-item-explain,
.ant-form-item-extra {
    font-size: 12px;
}

// Tabs
.ant-tabs-dropdown-content {
    .ant-dropdown-trigger {
        display: flex;
        align-items: center;

        .x-multi-tab__close-btn {
            margin: 0 0 0 auto;
        }
    }
}

// Card
.ant-card-type-flex {
    display: flex;
    flex-direction: column;
    height: 100%;

    .ant-card-head {
        margin-bottom: 0;
    }

    .ant-card-body {
        flex: 1 0 0;
        overflow: hidden;
        overflow-y: auto;
    }
}

// Spin
.ant-spin-spinning {
    display: block;
}

// Tooltip
.ant-menu-inline-collapsed-tooltip {
    a {
        color: #fff;

        .anticon {
            margin: 0 4px 0 0;
        }
    }
}

// Icon
.anticon {
    display: inline-flex;
    align-items: center;
}
